package demo3;

import javax.swing.plaf.synth.SynthOptionPaneUI;
import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-10-09
 * Time: 17:52
 */
public class Test5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Random random = new Random();
        int randNum = random.nextInt(100);
        //System.out.println("作弊:"+randNum);
        while (true){
            int n = scanner.nextInt();
            if (n < randNum) {
                System.out.println("你猜小了!");
            } else if (n == randNum) {
                System.out.println("你猜对了！");
                break;
            }else {
                System.out.println("你猜大了！");
            }
        }
    }
}
